package com.xl.xlserver.GameUtilEntity;

import lombok.Data;

@Data
public class Play {
    /**
     * 300 获取所有玩家
     * 400 移动广播
     * 500 攻击广播
     *
     */
    private String playCode;
    /**
     * 玩家名称
     */
    private String playName;

    /**
     * 纵坐标
     */
    private int   x;

    /**
     * 横坐标
     */
    private int  y;
    /**
     * 状态
     * 0 站立 1行走 2攻击
     */
    private String state;

    /**
     * 地图码
     */
    private int mapCode;

    public Play() {
    }

    public Play(String playCode, String playName, int x, int y, String state, int mapCode) {
        this.playCode = playCode;
        this.playName = playName;
        x = x;
        y = y;
        this.state = state;
        this.mapCode = mapCode;
    }
}
